using UnityEngine;
using UnityEngine.UI;

namespace HEFramework
{
    /// <summary>
    ///
    /// UI精灵行为
    /// 
    /// ----------------------------------------
    /// 作者 hep
    /// 创建时间：2023-02-17 19:24:48
    /// ----------------------------------------
    /// </summary>
    public interface IUIImageBehaviour : IUIBehaviour
    {
        /// <summary>
        /// 图片
        /// </summary>
        Image Image { get; }

        /// <summary>
        /// 设置图片
        /// </summary>
        /// <param name="_sprite"></param>
        IUIImageBehaviour SetImage(Sprite _sprite);

        /// <summary>
        /// 设置颜色
        /// </summary>
        /// <param name="_r"></param>
        /// <param name="_g"></param>
        /// <param name="_b"></param>
        /// <param name="_a"></param>
        IUIImageBehaviour SetColor(int _r, int _g, int _b, int _a);

        /// <summary>
        /// 获取位置
        /// </summary>
        /// <returns></returns>
        RectTransform GetRectTransform();
    }
}